@echo off
TITLE Windows Vista Event ID 4226 UnPatcher v1.0
echo.
echo Windows Vista Concurrent TCP/IP Connection Attempt Limit UnPatcher
echo Undo Windows Vista Event ID 4226 Fix and TCP/IP Patch Installation
echo Version 1.0
echo.
echo.
echo for 32-bit and 64-bit version of Windows Vista
echo.
echo.
echo Confirm to undo TCP/IP patch? (Press Ctrl-C and answer Y to terminate)
pause

takeown /f %Systemroot%\System32\drivers\
takeown /f %Systemroot%\System32\drivers\tcpip.sys
echo y | cacls %Systemroot%\System32\drivers\tcpip.sys /g "%username%":f
netsh int tcp set global autotuninglevel=normal
copy %Systemroot%\system32\drivers\tcpip.original %Systemroot%\system32\drivers\tcpip.sys /y
reg import UndoVista_TCPIP_limit.reg
echo.
echo *** Original driver was recoverd from backup copy "tcpip.original". ***
echo *** Patch removal is complete. Please RESTART your computer!! ***
echo.
pause
